<mat-icon style="text-align: right;padding-top: 8px;cursor: pointer;width:100%" (click)="dismiss($event)">close
</mat-icon>
<lib-factory [formId]="formId" [formInfo]="formInfo"></lib-factory>
<h4>{{'SELECT_PERMISIONS'|translate}}</h4>
<app-dynamic-tree [loadRoot]="loadRoot" [loadChildren]="loadChildren"[fg]="permissionFg" #tree [edit]="true"></app-dynamic-tree>
<lib-factory [formId]="formIdShared" [formInfo]="formInfoShared"></lib-factory>
<button mat-raised-button color="primary" *ngIf="bottomSheet.context === 'edit'" class="app-btn"
    (click)="update()">{{'UPDATE'|translate}}</button>
<button mat-raised-button color="primary" class="app-btn"
    (click)="create()"
    *ngIf="bottomSheet.context === 'clone' || bottomSheet.context === 'new'" >{{'CREATE'|translate}}</button>